

{count action=table table=1_quan_form_son_comment return=pingluns}
{count action=table table=1_quan_form_son_comment DAY_inputtime=0 return=pinglunsjintian}
{count action=table table=1_quan_form_son_comment status=1 return=pinglunsyishen}
{count action=table table=1_quan_form_son_comment status=0 return=pinglunsdaishen}
<div class="portlet portlet-sortable light bordered">
    <div class="portlet-title tabbable-line">
        <div class="caption">
            <i class="fa fa-comments-o"></i>
            <span class="caption-subject"> <a >{dr_lang('最新评论')}</a> </span>
        </div>
    </div>
    <div class="portlet-body">

        <div class="scroller" style="height: 850px;" data-always-visible="1" data-rail-visible="0">

            <div class="table-scrollable">
            <table class="table table-mtotal table-nomargin table-bordered table-striped table-bordered table-advance">
                <thead>
                <tr>
                    <th>{dr_lang('模块')}</th>
                    <th style="text-align: center">{dr_lang('总数据')}</th>
                    <th style="text-align: center">{dr_lang('今日')}</th>
                    <th style="text-align: center">{dr_lang('已审')}</th>
                    <th style="text-align: center">{dr_lang('待审核')}</th>
                    
                    <th>{dr_lang('操作')}</th>
                </tr>
                </thead>
                <tbody>
                
                <tr>
                    <td>评论</td>

                    <td style="text-align: center"><a class="drlabel drlabel-success" href="{dr_url('quan/son_comment/index')}">{$pingluns_count}</a></td>
                    <td style="text-align: center"><a class="drlabel drlabel-success" href="{dr_url('quan/son_comment/index')}">{$pinglunsjintian_count}</a></td>
                    <td style="text-align: center"><a class="drlabel drlabel-success" href="{dr_url('quan/son_comment/index')}">{$pinglunsyishen_count}</a></td>
                    <td style="text-align: center"><a class="drlabel drlabel-success" href="{dr_url('quan/son_comment_verify/index')}">{$pinglunsdaishen_count}</a></td>
                    <td>
                        <a class="btn btn-xs dark" href="{dr_url('comment/mform/edit',['dir'=>'quan-son'])}" >{dr_lang('设置')}</a>
                        
                    </td>
                </tr>
                <tr>
                    <td>最新</td>

                    
                </tr>
                
                
                </tbody>
            </table>

        </div>
        
            <ul class="feeds" style="padding-bottom: 20px">
                {table table=1_quan_form_son_comment order=inputtime_desc status=0  num=7 return=t}
                <li>
                    <div class="col1" style="padding-top: 2px;padding-left: 3px;">
                        <div class="cont">
                            <div class="cont-col1 user-avatar">
                                <a href="{dr_url('/huiyuan/show/index', array('uid' => $t.uid))}" target="_blank"><img style="height: 25px!important;" src="{dr_avatar($t.uid)}" /></a>
                            </div>
                            <div class="cont-col2">
                                {php $jintianfabu=\Phpcmf\Service::M()->db->table('1_quan_form_son')->where('id', $t.id)->where('DATEDIFF(from_unixtime(inputtime),now())=0')->countAllResults();}
                              
                                <div class="desc">
                                   
                                    <span style="color: red">[待审]</span>
                                    <a href="{dr_url('quan/son_comment_verify/edit',['id'=>$t.id,'cid'=>$t.cid])}" target="_blank">
                                        {dr_strcut(dr_clearhtml($t.content), 20)}
                                    </a>
                                    {php $t['id']= $t.cid;}
                                    <a href="{dr_son_url($t)}" target="_blank">
                                        [关联帖]
                                    </a>
                                     {dr_date($t.inputtime)}
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col2">
                        <div class="date"> </div>
                    </div>
                </li>
                {/table}
            </ul>
            <ul class="feeds" style="padding-bottom: 20px">
                {table table=1_quan_form_son_comment status=1 order=inputtime_desc num=7 return=t}
                <li>
                    <div class="col1" style="padding-top: 2px;padding-left: 3px;">
                        <div class="cont">
                            <div class="cont-col1 user-avatar">
                                <a href="{dr_url('/huiyuan/show/index', array('uid' => $t.uid))}" target="_blank"><img style="height: 25px!important;" src="{dr_avatar($t.uid)}" /></a>
                            </div>
                            <div class="cont-col2">
                                {php $jintianfabu=\Phpcmf\Service::M()->db->table('1_quan_form_son_comment')->where('id', $t.id)->where('DATEDIFF(from_unixtime(inputtime),now())=0')->countAllResults();}
                              
                                <div class="desc">
                                {if $jintianfabu}    
                                    <span style="color: red">[今天]</span>
                                {/if}
                                    <a href="{dr_son_url($t)}" target="_blank">
                                        {dr_strcut(dr_clearhtml($t.content), 20)}
                                    </a>
                                    {php $t['id']= $t.cid;}
                                    <a href="{dr_son_url($t)}" target="_blank">
                                        [关联帖]
                                    </a>
                                    {dr_date($t.inputtime)}
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col2">
                        
                        <div class="date">
                             
                             
                        </div>
                    </div>
                </li>
                {/table}
            </ul>
            

        </div>
    </div>
</div>
